import Request from "../../utils/http";
import { ServerResponse } from "../../utils/serverResponse";

interface searchParams {
	goodName: string
}

export default class GoodApi {

	// 搜索商品
	public async searchGood(params: searchParams): Promise<any> {
		const res: ServerResponse<any> = await Request.post('/api/good/searchGood', params);
		return res.data
	}
}